Artificial intelligence - 8 Miles Solution